import Router from "koa-router";  //引入路由
import { queryAllControlles,regRouter } from './utils.js'

const router = new Router();  //实例化路由


regRouter(router,queryAllControlles('controllers'))

export default router.routes()  //暴露路由